import request from "@/utils/request";

export const getClassApi = (params?: any) => {
  return request({
    url: "/team/class/list",
    method: "get",
    params,
  });
};
export const addClass = (data: any) => {
  return request({
    url: "/team/class/add",
    method: "post",
    data,
  });
};
export const editClass = (data: any) => {
  return request({
    url: "/team/class/edit",
    method: "put",
    data,
  });
};
export const delClass = (id: number) => {
  return request({
    url: "/team/class/" + id,
    method: "delete",
  });
};

export const getListAPi = (params?: any) => {
  return request({
    url: "/team/list",
    method: "get",
    params,
  });
};

export const getInfoApi = (id: number) => {
  return request({
    url: "/team/" + id,
    method: "get",
  });
};

export const addApi = (data: any) => {
  return request({
    url: "/team/add",
    method: "post",
    data,
  });
};
export const editApi = (data: any) => {
  return request({
    url: "/team/edit/",
    method: "put",
    data,
  });
};
export const delApi = (id: number) => {
  return request({
    url: "/team/delete/" + id,
    method: "delete",
  });
};
